<template>
    <div>
        <!--返回-->
        <div>
            <el-page-header @back="back" content="详情">
            </el-page-header>
        </div>
        <div style="height: 30px" />
        <div>
            <el-form ref="form" :model="codeInfo" label-width="100px">
                <el-form-item label="活码名称">
                    <el-input v-model="codeInfo.codeName" :disabled="true"></el-input>
                </el-form-item>
                <el-form-item label="分组">
                    <el-input v-model="codeInfo.codeGroupName" :disabled="true"></el-input>
                </el-form-item>
                <el-form-item label="活码引流成员">
                    <el-input v-model="empName" :disabled="true"></el-input>
                </el-form-item>
                <el-form-item label="标签">
                    <el-input v-model="codeInfo.tags" :disabled="true"></el-input>
                </el-form-item>
                <el-form-item label="创建时间">
                    <el-input v-model="codeInfo.createTime" :disabled="true"></el-input>
                </el-form-item>
            </el-form>
        </div>
<!--        <el-button style="margin-top: 12px;" @click="back">返回列表</el-button>-->
    </div>
</template>

<script>
export default {
    name: "employeeView",
    props: {
        codeInfo: {
            type: Object,
            default() {
                return {}
            }
        }
    },
    data() {
        return {
            empName: ""
        }
    },
    mounted() {
        this.queryDataHandle(1, 10)
    },
    methods: {
        back() {
            this.$emit("currentHandler", "list")
        },
        queryDataHandle(page = 1, row = 10) {
            let payload = {
                codeId: this.codeInfo.codeId
            }
            let that = this
            that.$request("/api/code/distinctCode/1_0", payload, "POST").then((data) => {
                that.empName = data.message
            })

        },
    }
}
</script>

<style scoped>

</style>
